$(document).ready(function () {

    
//    var test = JSON.parse(<?php echo $counter; ?>);
//    var counter = "<?php echo $counter; ?>";

    
//    if (counter % 20 == 0) {
//        var small = $('#banner_s').html();
//        var large = $('#banner_l').html();
//        $('#banner_s').html(large);
//        $('#banner_l').html(small);
//    }

    /*

    $('.folder').click(function (event, getAlbum) {


        $('.folder').css("text-decoration", "none");

        if (getAlbum != undefined) {


            if ($('#album_' + getAlbum).length == 0) {
                $('#info').html('<li><h1 style="font-weight: bold; font-size: 25px; padding: 10px;">No such album</h1><li>');
                return false;
            }


            $('#album_' + getAlbum).css("text-decoration", "underline");
            var href = $('#album_' + getAlbum).attr('href');
            album_id = href.substring(1);
        }
        else {
            $(this).css("text-decoration", "underline");
            var href = $(this).attr('href');
            album_id = href.substring(1);
        }


        $.ajax({
            url:'get_pics.php',
            type:"POST",
            data:{ album_id:album_id },
            success:function (res) {
                $('#info').html(res);
            }
        });

        return false;
    });

    */

    /*

    $('.folder').first().trigger('click', [getAlbum]);

    */

    /*

    $('#left').click(function () {

        counter++;

        if (counter % 20 == 0) {
            var small = $('#banner_s').html();
            var large = $('#banner_l').html();
            $('#banner_s').html(large);
            $('#banner_l').html(small);
        }

        var first = $('#info > li:first');
        var last = $('#info > li:last');
        var active = $('#info > li:visible');
        var prev = active.prev();

        if (first[0] == active[0]) {
            active.hide();
            last.show();

        }
        else {
            active.hide();
            prev.show();
        }

        return false;

    });


    $('#right').click(function () {

        counter++;

        if (counter % 20 == 0) {
            var small = $('#banner_s').html();
            var large = $('#banner_l').html();
            $('#banner_s').html(large);
            $('#banner_l').html(small);
        }

        var first = $('#info > li:first');
        var last = $('#info > li:last');
        var active = $('#info > li:visible');
        var next = active.next();

        if (last[0] == active[0]) {
            active.hide();
            first.show();
        }
        else {
            active.hide();
            next.show();
        }


        return false;

    });

    */

});


            
